/*
 * @copyright: Huang Ding
 * @Author: ding-cx
 * @Date: 2020-12-02 16:22:03
 * @LastEditors: ding-cx
 * @LastEditTime: 2020-12-15 16:44:35
 * @Description: file content
 */
'use strict';

const Controller = require('egg').Controller;

class HomeController extends Controller {
  async index() {
    const { ctx,app } = this;
    ctx.body = 'hi,I\'m egg.' + this.app.config.ding_config.cache;
    // console.log(this.app.config.ding_config.cache);
    app.logger.debug('debug info');
    app.logger.info('启动耗时 %d ms', Date.now());
    app.logger.warn('warning!');
  
    app.logger.error(new Error("hello Error!!!!!!!!!!!!!!!!"));
  }
}

module.exports = HomeController;
